Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add relation macros and add relation renameable/replaceable config #603

Merged
merged 5 commits into from
Sep 13, 2023

Conversation

colin-rogers-dbt
Copy link
Contributor

resolves #
docs dbt-labs/docs.getdbt.com/#

Problem

Solution

Checklist

  • I have read the contributing guide and understand what's expected of me
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc) or this PR has already received feedback and approval from Product or DX

.changes/unreleased/Fixes-20230912-133327.yaml Outdated Show resolved Hide resolved
{%- set contract_config = config.get('contract') -%}
{%- if contract_config.enforced -%}

create table
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These (this line and line 36) should be create or replace instead of just create.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think redshift supports or replace

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If Redshift doesn't support create or replace for tables, then we need to remove RelationType.Table from replaceable_relations and then delete this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point! duh

dev-requirements.txt Outdated Show resolved Hide resolved
@colin-rogers-dbt colin-rogers-dbt merged commit 56af912 into main Sep 13, 2023
25 checks passed
@colin-rogers-dbt colin-rogers-dbt deleted the updateAlterMVs branch September 13, 2023 18:51
abbywh pushed a commit to abbywh/dbt-redshift that referenced this pull request Oct 11, 2023
…bt-labs#603)

* add relation macros and add relation renameable/replaceable config

* formatting cleanup

* PR fixes

* make tables irreplaceable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants